import {ObjectDto, ObjectDtoInterface} from "../../services/sqliteDB/object.dto";
import { TableColumnType } from "../../services/sqliteDB/object.dto";
import {SyncStatus} from "../sync-status";

export class DistrictDto extends ObjectDto implements ObjectDtoInterface {
    public id: string = null;
    public name: string = null; //
    public number: string = null; // 编号
    public syncStatus: SyncStatus = SyncStatus.None;

    constructor() {
        super();

    }

    table() {
        return {
            tableName: "District",
            tableConstructor: {
                id: `${TableColumnType.text} ${TableColumnType.unique}`,
                // id: `${TableColumnType.text}`,
                name: TableColumnType.text,
                number: TableColumnType.text,
                syncStatus: TableColumnType.int
            }
        };
    }

}



